<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>旅游路线详细信息</title>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/easyui1.5/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/easyui1.5/themes/icon.css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/easyui1.5/jquery.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/easyui1.5/jquery.easyui.min.js"></script>
</head>
<body>
	<table style="color: red">
		<tr>
			<td>
				<input type="checkbox" id="xuan">
			</td>
			<td>编号</td>
			<td>路线名称</td>
			<td>优惠信息</td>
			<td>负责人姓名</td>
			<td>报名起始时间</td>
			<td>结束时间</td>
			<td>出发时间</td>
			<td>归程时间</td>
			<td>创建人</td>
			<td>创建时间</td>
			<td>修改人</td>
			<td>修改时间</td>
			<td>介绍</td>
			<td>负责人电话</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${routeList }" var="r">
			<tr>
				<td>
					<input type="checkbox" id="check"  name="check">
				</td>
				<td>${r.id }</td>
				<td>${r.name }</td>
				<td>${r.dname}</td>
				<td>${r.relationUserName }</td>
				<td>
					<fmt:formatDate value="${r.applyTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${r.stopTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${r.departTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${r.returnTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${r.createUserId }
				</td>
				<td>
					<fmt:formatDate value="${r.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${r.alertUserId }
				</td>
				<td>
					<fmt:formatDate value="${r.alertTime }"  pattern="yyyy-MM-dd HH:mm:ss"/>  
				</td>
				<td>${r.introduce }</td>
				<td>${r.relationUserTel }</td>
				<td>
					<input type="button" value="修改路线" onclick="fnUpdRoute(${r.id })">
				</td>
			</tr>
		</c:forEach>
		<tr>
			<td colspan="10">
				<input type="button" value="删除路线" onclick="fnDelRoute()">
				<input type="button" value="新增路线" onclick="fnAddRoute()">
			</td>
		</tr>
	</table>
</body>
<script type="text/javascript">
	$(function(){
		//全选全部选
		$("#xuan").click(function(){
			$(":checkbox[name='check']").prop("checked",$("#xuan").prop("checked"))
		})
	})
	//新增路线
	function fnAddRoute(){
		location.href="/travel/route/addRoute";
	}
	
</script>
</html>